<template>
<div class="layerRtb layerRtb-threecolumn layerRtb-right">
    <three-title :title="{name:'内容查看'}" :close="false">
        <span tag="i" class="rig_close fr" @click="$parent.$parent.clickFiveShow()"></span>
    </three-title>
    <div class="layerRtb-scroll thinScroll" v-scrollHeight = "18">
        <div class="analyItem"  v-for="(item, index) of servicesList" :key="index" >
            <p class="analyItemTit tx-center">{{item.content | truncate(5)}}</p>
            <div class="analyItemCon">
                <div class="fixedBox">
                    <rx-viewer :images="item.data" class="ml10">
                        <div class="clearfix">
                            <div class="fl mr10">
                                <img :src="item.standard_imgUrl | smallImg(88, 88)" :alt="index">
                            </div>
                        </div>
                    </rx-viewer>
                    <div>
                        {{item.standard}}
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</template>
<script>
import { mapGetters } from 'vuex'
import { getSupervisionServicesItem } from '../../../../Resources/Api/nodeorder'
export default {
    data () {
        return {
            value: 0,
            servicesList: [] // 服务项集合
        }
    },
    computed: {
        ...mapGetters(['leftInfo'])
    },
    created () {
        this.getSupervisionServicesItem()
    },
    methods: {

        // 查询增值项
        getSupervisionServicesItem () {
            let parm = {
                orderCode: this.$route.query.code
            }
            // 接口订单数据
            getSupervisionServicesItem(parm).then(results => {
                if (results.data.StatusCode === 1) {
                    this.servicesList = results.data.Body.supervisionServicesList
                }
            }).catch(error => {
                console.log(error)
            })
        }


    },
    watch: {
        leftInfo () {
            this.switch()
        }
    }
}
</script>
<style lang="">
    .fixedBox {
        display: flex;
        align-items: center;
    }
</style>
